// ==============================================================
//
//  Copyright (c) 1999-2002 by Alex Vinokur.  This work and all works
//  derived from it may be copied and modified without any
//  restrictions other than that a copy of this copyright notice
//  must be included in any copy of this work or any derived work.
//
// ==============================================================
static char id [] = "@(#)## n-ary Huffman Template Algorithm ## Author : Alex Vinokur ## "__FILE__;

// ##############################################################
// =================================
//  n-ary Huffman Template Algorithm
// ==================================
//
//  FILE : demomain.cpp
//
//  AUTHOR : Alex Vinokur
//
//  DESCRIPTION :
//
//
//         Running the tests
//         -----------------
//
// ##############################################################


// ===================
#include "methods.h"
#include "democase.h"
// ===================


// #####################################################
// ############# main ##################################
// #####################################################
// ==============================
int main (int argc, char **argv)
{
vector<int>	inst_vect;

	cout << endl;
	cout << endl;
	cout << "\t------> YOUR COMMAND LINE : ";
	for (int i = 0; i < argc; i++)
	{
		cout <<	argv[i] << " ";
	}
	cout << endl;

	// ----------------------------
	for (int i = 1; i < argc; i++)
	{
		inst_vect.push_back(atoi(argv[i]));
	}

	if (inst_vect.empty())	inst_vect.push_back(1);	


	

	// ----------------------------
	cout << "\t------> TEST GROUPS : ";
	for (int i = 0; i < inst_vect.size(); i++)
	{
		cout <<	inst_vect[i] << " ";
	}
	cout << endl;
	cout << endl;

	// ----------------------------
	for (int i = 0; i < inst_vect.size(); i++)
	{
	ClassTest test (inst_vect[i]);

		test.DEMO_CASE(t01);
		test.DEMO_CASE(t02);
		test.DEMO_CASE(t03);
		test.DEMO_CASE(t04);
		test.DEMO_CASE(t05);
		test.DEMO_CASE(t06);
		test.DEMO_CASE(t07);
		test.DEMO_CASE(t08);

		test.DEMO_CASE(m01);
		test.DEMO_CASE(m02);
	}

} // main


// #######################################################
// ################ END OF FILE ##########################
// #######################################################

